﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CourseScheduling.DataAccess
{
    public class CSCourseRequest:CSDataObject
    {
        public DateTime Date
        {
            get
            {
                return (DateTime)this["Datesubmitted"];
            }
            set
            {
                this["Datesubmitted"] = value;
            }
        }

        public string NNumber
        {
            get
            {
                return SafeGetString(this["NNumber"]);
            }
            set
            {
                this["NNumber"] = value;
            }
        }

        public string Name
        {
            get
            {
                return SafeGetString(this["StudentName"]);
            }
            set
            {
                this["StudentName"] = value;
            }
        }

        public string ProgramCode
        {
            get
            {
                return SafeGetString(this["degreeProgram"]);
            }
            set
            {
                this["degreeProgram"] = value;
            }
        }

        public string Semester
        {
            get
            {
                return SafeGetString(this["semesterRequest"]);
            }
            set
            {
                this["semesterRequest"] = value;
            }
        }


        public int Year
        {
            get
            {
                return (int)this["yearRequest"];
            }
            set
            {
                this["yearRequest"] = value;
            }
        }

        public string CourseCode
        {
            get
            {
                return SafeGetString(this["CourseNumber"]);
            }
            set
            {
                this["CourseNumber"] = value;
            }
        }


        public bool IsRequired
        {
            get
            {
                return (bool)this["Required"];
            }
            set
            {
                this["Required"] = value;
            }
        }

        public int DayOfWeek
        {
            get
            {
                return (int)this["DayOfWeekRequest"];
            }
            set
            {
                this["DayOfWeekRequest"] = value;
            }
        }

        public string TimeOfDay
        {
            get
            {
                return SafeGetString(this["TimeOfDayRequest"]);
            }
            set
            {
                this["TimeOfDayRequest"] = value;
            }
        }

    }
}